package com.zjt.smart.mvp.view;

import android.support.annotation.Nullable;

import java.util.List;

public interface LoadView<DataType> {
    /**
     * Null only occurs in POST action.means success.
     */
    @Nullable
    void onSuccess(List<DataType> data);

    void onCache(long cacheTime, List<DataType> data);

    void onFail(int errorCode, String errorMsg);
}
